#!/usr/bin/env bash

set -ve

export LFS='/mnt/lfs'

_USER=`whoami`
if [ "$_USER" != "lfs" ];
then
    echo 'WARNING: User lfs ONLY!!!' && exit;
fi

############################## Expect ###############################

cd $LFS/sources/
rm -rf dejagnu-1.6.2/
tar -xvf dejagnu-1.6.2.tar.gz
cd dejagnu-1.6.2/

./configure --prefix=/tools
make install
make check
